package com.dx.ioc;

import org.springframework.beans.factory.FactoryBean;



/**
 * 自定义实现Bean的加载过程
 */
public class MyFactoryBean /*implements FactoryBean<Company>*/ {

	private String companyInfo;

	public void setCompanyInfo(String companyInfo) {
		this.companyInfo = companyInfo;
	}
/*
	@Override
	public Company getObject() throws Exception {
		Company company = new Company();
		String[] strings = companyInfo.split(",");
		company.setName(strings[0]);
		company.setAddress(strings[1]);
		company.setScale(Integer.parseInt(strings[2]));
		return company;
	}

	@Override
	public Class<?> getObjectType() {
		return Company.class;
	}*/
}
